//
//  Dog.h
//  Realm-demo
//
//  Created by 小菜 on 17/5/8.
//  Copyright © 2017年 蔡凌云. All rights reserved.
//

#import <Realm/Realm.h>

@interface Dog : RLMObject

@property int num;
@property NSString *name;

// 逆向关系 -- 需要实现协议
@property (readonly) RLMLinkingObjects *master;

@end

// This protocol enables typed collections. i.e.:
// RLMArray<Dog *><Dog>
RLM_ARRAY_TYPE(Dog)
